package screen 
{
	import flash.display.BitmapData;
	import map.MapSource;
	/**
	 * ...
	 * @author Jeroen Gildemacher
	 */
	public class PixelLayer extends ScrollingLayer
	{
		private var mapSource:MapSource;
		public function PixelLayer(mapSource:MapSource) 
		{
			this.mapSource = mapSource;
			scrollingBitmap = createPixelLayer(mapSource);
		}

		private function createPixelLayer(mapSource:MapSource):BitmapData {
			var out:BitmapData = new BitmapData(1000, 1000, true, 0xFF000000);
			var r:int;
			var g:int;
			var b:int;
			for ( var x:int = 0; x < 1000; x++) {
				for ( var y:int = 0; y < 1000; y++) {
					//out.setPixel(x, y, mapSource.getRGB(mapSource.getByteMap()[x][y])+(x*255/1000));
				}
			}
			return out;
		}
		}

}